{extend name="index:layout" /}

{block name="menu"}{/block}

{block name="content"}
<script>
function show2(tt){
	if(tt==2){
		$("#txt1").css("display","none");
		$("#txt2").css("display","");
		//txt1.style.display='none';
		//txt2.style.display='';
	}else{
		//txt1.style.display='';
		//txt2.style.display='none';
		$("#txt1").css("display","");
		$("#txt2").css("display","none");
	}
}

function upfile(url,name,size,b){
	document.form1.upsql.value=url;
}
</script>

<form name="form1" method="post" action="">
<div class="MainContainers">
    <div class="Header"><span class="tag">数据库工具</span><span class="more">&gt;&gt;</span></div>

    <table class="FormTable"> 
        <tr bgcolor='#FFFFFF' align="center"> 
          <td colspan="3"> 
            <div id=txt2 style='display:'> 

              <table width="98%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td colspan="2">每一条sql语句必须用;号分隔开<font color='#FF0000'>(注意，此框今后升级数据库会经常用到，把代码粘贴进去，点击提交就行了)</font></td>
                  <td width="0%">&nbsp;</td>
                </tr>
                <tr> 
                  <td width="25%">请粘贴要执行的SQL语句代码</td>
                  <td width="75%"> 
                    <textarea name='sql' cols='70' rows='10' ></textarea>
                    <font color='#0379ED'><b>（提醒:这里也可以输入select语句进行资料查看）</b></font>
                  </td>
                  <td width="0%">&nbsp;</td>
                </tr>
              </table>

            </div>
          </td>
        </tr>
        <tr> 
          <!-- <td width='28%'>&nbsp;</td> -->
          <td colspan='2'> 
            <!-- <input type='submit' name='Submit' value='立刻执行SQL语句'> -->
            <div class="submits"><input type='submit' name='w' value='立刻执行SQL语句'></div>
          </td>
        </tr>

{php}
if($pre!='qb_'){
{/php}
        <tr bgcolor='#FFFFFF'> 
          <td colspan="3">请务必注意:sql语句中如包含有qb_的字符会被替换为{:config('database.prefix')}</td>
        </tr>
{php}
}
{/php}
 

      </table>

</div>
</form>
{/block}